var arr = [1, 2, 3, 1, 2, 5, 3, 6, 2, 2];
var brr = [];
var i = 0;
for (i; i < arr.length; i++) {
    if (brr.indexOf(arr[i]) == -1) {
        brr.push(arr[i]);
    }
}
console.log(brr);

